<template>
    <h1>我是About,我可以收到对应的App的内容是{{$route.query.msg}}</h1>
</template>
<script>
export default{
    mounted(){
        console.log(this.$route);
    },
    //进入路由前调用这个函数
    beforeRouteEnter (to, from, next) {
        //也可以做类似鉴权的操作
        console.log('进来了',to,from)
        next()
    },
    //离开路由组件 
    beforeRouteLeave(to,from,next){
        console.log('走了',to,from);
        next()
    }
}
</script>
<style>
</style>